home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Clock / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.3 KB  |  95 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. //-------------------------------------------------------------------------------------
  14. // Uncomment the following three lines, and define them appropriately!!
  15. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  16. // to be 1.  Otherwise define it to be 0.
  17. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  18. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  19. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  20. // define it to be zero.  Note that if your part is scriptable is must support
  21. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  22. #define FW_SUPPORTS_EMBEDDING     0
  23. #define FW_SUPPORTS_EXTENSIONS     0
  24. #define FW_SUPPORTS_SCRIPTING     0
  25.  
  26. //-------------------------------------------------------------------------------------
  27. // Icons ID
  28. #define kViewAsIconID                 128
  29. #define kAboutIconID                130
  30.  
  31. //-------------------------------------------------------------------------------------
  32. // Menus
  33. #define kMenuBar                    1024
  34.  
  35. // Menu Commands
  36. #define cClockType                     FW_kFirstUserCommandID
  37. #define cClockSoundsTick            cClockType + 1
  38. #define cClockSoundsChime            cClockSoundsTick + 1
  39. #define cClockSettings                cClockSoundsChime + 1
  40. #define cClockUseContainerColor        cClockSettings + 1
  41.  
  42. //-------------------------------------------------------------------------------------
  43. // About
  44. #define kAbout                        1024
  45.  
  46. //-------------------------------------------------------------------------------------
  47. // Document Window
  48. #define kDocumentWindowID            1024
  49.  
  50. //-------------------------------------------------------------------------------------
  51. // Part Info 
  52. #define kPartInfoID                    1024
  53.  
  54. //-------------------------------------------------------------------------------------
  55. // Strings
  56. #define kClockFaceStrings             1002
  57. #define kClockDigitalWidthString     1
  58. #define kClockOpenDocString         2
  59.  
  60. #define kClockStrings                1003
  61. #define kOffsetErrorString            1
  62. #define kClockSettingsTitleString    2
  63.  
  64. //-------------------------------------------------------------------------------------
  65. // Sounds
  66. #define kClockChime                 1000
  67. #define kClockTick                     1001
  68.  
  69. //-------------------------------------------------------------------------------------
  70. // Presentation
  71. #define kAnalogPresentation            "Apple:Presentation:ODFClock:Analog"
  72. #define kDigitalPresentation        "Apple:Presentation:ODFClock:Digital"
  73. #define kClockSettingsPresentation    "Apple:Presentation:ODFClock:Dialog:Settings"
  74.  
  75. //-------------------------------------------------------------------------------------
  76. // Views
  77. #define kAnalogClockView            1200
  78. #define kAnalogClockViewRoot        1201
  79. #define kDigitalClockView            1210
  80. #define kDigitalClockViewRoot        1211
  81.  
  82. #define kClockViewID        1
  83. #define kGrowBoxID             2
  84.  
  85. //-------------------------------------------------------------------------------------
  86. // Dialogs
  87. #define kClockSettingsDialog        1220
  88. #define kTimeOffsetViewID    1
  89. #define kFaceStringViewID    3
  90. #define kClockOKButtonID    5
  91. #define kCancelButtonID        7
  92.  
  93. #endif
  94.  
  95.